package com.rui.decorator.model;

import com.rui.decorator.obj.FriedRice;

/**
 * @Description: 鸡蛋配料
 * @Author: ZhangRui
 * @Date: 2023/3/3 9:36
 * @Version: 1.0
 */
public class Egg extends Ingredients {

    public Egg(FriedRice friedRice) {
        super(friedRice);
    }

    @Override
    public String getDesc() {
        return super.getDesc() + "+鸡蛋";
    }

    @Override
    public Integer getPrice() {
        return super.getPrice() + 2;
    }
}
